public class StaticTest{
	public int cnt = 1;
	public static int snt = 2;

	void show(){
		System.out.println("cnt = " + cnt);
		System.out.println("snt = " + snt);
	}

	static void show1(){
		// System.out.println("cnt = " + cnt);//错误: 无法从静态上下文中引用非静态 变量 cnt
		System.out.println("snt = " + snt);

	}
	public static void main(String[] args) {
		StaticTest st1 = new StaticTest();
		st1.show();
		st1.show1();
	}
}